//
//  YJDTextField.h
//  sigleAPP
//
//  Created by SKL on 2017/11/10.
//  Copyright © 2017年 SKL. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "YJDCustomButton.h"

UIKIT_EXTERN CGFloat const LEFTVIEW_HEIGHT;
UIKIT_EXTERN NSString * const YJDPhoneRegisterViewCustomKey;
UIKIT_EXTERN NSString * const YJDPhoneRegisterViewNotifiOb;

typedef NS_ENUM(NSInteger,YJDTextFieldType)
{
    YJDTextFieldTypeDefault = 1, //默认类型
    YJDTextFieldTypeAccountList, //账号类型,带下拉选择按钮
    YJDTextFieldTypeAccountNormal,//账号类型，不带下拉选择按钮
    YJDTextFieldTypePassword,    //密码类型,带明文密文切换按钮
    YJDTextFieldTypeVerify,      //验证码类型,带获取验证码按钮
    YJDTextFieldTypePhoneNumber, //手机号码注册类型,加+86提示
    YJDTextFieldTypeIDCart       //身份证类型,不能手动输入
};
@protocol YJDTextFieldDelegate <UITextFieldDelegate>
- (void)yjd_actionForXiaLa:(BOOL)isXiaLa;
- (BOOL)yjd_actionForVerifyCode;
@end
@interface YJDTextField : UITextField
@property (nonatomic, assign) id <YJDTextFieldDelegate>customDelegate;
@property (nonatomic, assign) YJDTextFieldType type;
@property (nonatomic, strong) YJDCustomButton *rightBtn;
- (instancetype)initWithFrame:(CGRect)frame;
- (instancetype)initWithPlaceholder:(NSString *)placeholder;
- (void)yjd_setupRightView:(NSString *)imageName;
- (void)yjd_setupLeftView:(NSString *)imageName;
- (void)yjd_setupRightBtnTitle:(NSString *)title;
- (void)yjd_stopTimer;
@end

